import { Toast } from 'teaset';

const showShort = (content, mask) => {
  if (!content) {
    return;
  }
  Toast.info(content, 3);
};

const showLong = (content, mask) => {
  if (!content) {
    return;
  }
  Toast.info(content, 5);
};

const showSuccess = (content) => {
  Toast.success(content, 3);
};

const showFail = (content) => {
  Toast.fail(content, 3);
};

const showOffline = (content) => {
  Toast.sad(content, 3);
};

export default {
  showShort,
  showLong,
  showSuccess,
  showFail,
  showOffline,
};
